// 页面容器
#container {
  // position: relative;
  width: 100%;
  // height: 100%;
  overflow: auto;
  // min-height: 100%;
  // padding-bottom: 100px;
  box-sizing: border-box;
}

// 内容区域
.main-container,
.about-content,
.product-row,
.detail-container,
.shop-container,
.content {
  height: calc(100vh - 100px);
  overflow-y: auto;
}

/* 全局滚动条 */
*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #0000001a;
}

*::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: #00000000;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #00000033;
}

// 提示框
.field {
  position: relative;
  padding: 20px 0;

  img {
    width: 100px;
  }
}

.has-tooltip:hover+.tooltip,
.has-tooltip:focus+.tooltip,
.has-tooltip.hover+.tooltip {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1) rotate(0deg);
  pointer-events: inherit;
}

.flex-vertical{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.tooltip {
  display: block;
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.75) rotate(5deg);
  transform-origin: bottom center;
  padding: 10px 30px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.75);
  text-align: center;
  color: white;
  transition: 0.15s ease-in-out;
  opacity: 0;
  width: 100%;
  max-width: 100vw;
  pointer-events: none;
  z-index: 5;
}

.tooltip.green {
  background: rgba(46, 196, 182, 0.75);
}

.tooltip.green:after {
  border-top: 5px solid rgba(46, 196, 182, 0.75);
}

.tooltip:hover {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1) rotate(0deg);
  pointer-events: inherit;
}

.tooltip img {
  max-width: 100%;
}

.tooltip:after {
  content: '';
  display: block;
  margin: 0 auto;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top: 5px solid rgba(0, 0, 0, 0.75);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
}

.bg-color {
  background-color: #000000cc;
}

.header-svg {
  font-size: 14px;
}

//布局文件重写
.pointer {
  cursor: pointer;
}

/**常用margin**/
.ml-10 {
  margin-left: 10px;
}

.mr-10 {
  margin-right: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

.pd-10 {
  padding-bottom: 10px;
}

.pb-25 {
  padding-bottom: 25px;
}

/**常用padding**/
.pad-10 {
  padding: 10px;
}

.pt-10 {
  padding-top: 10px;
}

.pr-10 {
  padding-right: 10px;
}

.p1-10 {
  padding-left: 10px;
}

/**常用定位与浮动**/
.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

.fr {
  float: right;
}

.f1 {
  float: left;
}

.abs {
  position: absolute;
}

.rel {
  position: relative;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

/** Align **/
.text-center {
  text-align: center;
}

.flex-center {
  display: flex;
  justify-content: center;
}

/** Font **/
.bold {
  font-weight: bold;
}

.under-line {
  text-decoration: underline;
}

.flex {
  display: flex;
}

/*布局*/
.flex-container {
  display: flex;
}

//水平左中右flex布局
.flex-row {
  display: flex;
  flex-flow: row nowrap;
  height: 100%;

  .flex-row-left {
    flex: 0 0 auto;
  }

  .flex-row-center {
    flex: 1 1 auto;
  }

  .flex-row-right {
    flex: 1 1 auto;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #dde2eb;
  }
}

// 垂直上中下布局
.flex-column {
  display: flex;
  flex-flow: column nowrap;
  height: 100%;

  .flex-column-top {
    flex: 0 0 auto;
  }

  .flex-column-middle {
    flex: 1 1 auto;
    overflow: hidden;
    min-height: 5px; // 随意给个高度，让它自动伸展
  }

  .flex-column-bottom {
    flex: 0 0 auto;
  }
}

/*拖动条手型*/
.column-resize {
  width: 10px;
  cursor: col-resize;
  background-color: transparent;
}

.row-resize {
  height: 10px;
  cursor: col-resize;
  background-color: transparent;
}

.hide {
  display: none;
}

.conceal {
  opacity: 0;
}

.full {
  height: 100%;
}

.wid-160 {
  width: 160px;
  text-align: center;
}

/*弹窗样式*/
.el-dialog {
  &.dialog-small {
    width: 30%;
    max-height: 60%;
  }

  &.dialog-medium {
    width: 60%;
    max-height: 80%;
  }

  &.dialog-large {
    width: 90%;
    max-height: 80%;
  }

  &.dialog-full {
    width: 100%;
    max-height: 100%;
    margin-top: 0 !important;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;

    .el-dialog__body {
      flex: 1;
      overflow: auto;
    }

    .el-dialog__footer {
      border-top: 1px solid #dde2eb;
    }
  }
}

/*省略号*/
.text-ellipsis {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.product {
  width: 160px;
  height: 160px;
  background-size: 100% 100%;
}

.main-page {
  width: 240px;
  height: 240px;
  background-size: 100% 100%;
}

@media screen and (max-width: 1360px) {
  #app {
    overflow: auto;
  }
}

@media screen and (max-width: 600px) {
  #container {
    padding-bottom: 140px;
  }
}

// @media only screen and (min-device-width: 950px) and (max-device-width: 1290px) {
// }